#ifndef _MYCAM_H_
#define _MYCAM_H_

// ===================
// 摄像头引脚配置
// ===================
#define PWDN_GPIO_NUM    -1
#define RESET_GPIO_NUM   -1
#define XCLK_GPIO_NUM     6
#define SIOD_GPIO_NUM    17
#define SIOC_GPIO_NUM    18

#define Y9_GPIO_NUM      39
#define Y8_GPIO_NUM      41
#define Y7_GPIO_NUM      42
#define Y6_GPIO_NUM       5
#define Y5_GPIO_NUM      40
#define Y4_GPIO_NUM      14
#define Y3_GPIO_NUM      47
#define Y2_GPIO_NUM      45
#define VSYNC_GPIO_NUM   21
#define HREF_GPIO_NUM    38
#define PCLK_GPIO_NUM    48

#include <Arduino.h>
#include "esp_camera.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include "mymqtt.h"
extern camera_fb_t *fb;
extern QueueHandle_t imageQueue;
extern uint32_t cam_time;

void camera_init();
void captureTask(void *pvParameters);
void sendTask(void *pvParameters);


#endif
